<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .swiper-3d {
      position: relative;
      width: 1000px;
      height: 500px;
      margin: 100px auto;
    }

    img {
      display: block;
      width: 100%;
    }

    .swiper-item {
      position: absolute;
      box-shadow: 10px 20px 10px #666;
      transition: all .6s cubic-bezier(0.215, 0.610, 0.355, 1);
    }

    .swiper-item.current {
      /* top: 80px;
      left: 200px; */
      z-index: 3;
      width: 600px;
      opacity: 1;
      transform: translate3d(200px, 80px, 0);
    }
    .swiper-item.second {
      /* top: 138px; */
      z-index: 2;
      width: 400px;
      opacity: .6;
    }
    .swiper-item.second.left {
      /* left: 0; */
      transform: translate3d(0, 138px, 0);
    }
    .swiper-item.second.right {
      /* left: 600px; */
      transform: translate3d(600px, 138px, 0);
    }

    .swiper-item.third {
      /* top: 20px;
      left: 350px; */
      z-index: 1;
      width: 300px;
      opacity: .4;
      transform: translate3d(350px, 20px, 0);
    }

  </style>
</head>
<body>
  <div class="container">
    <div class="swiper-3d">
      <div class="swiper-item current">
        <a href="">
          <img src="https://w.wallhaven.cc/full/72/wallhaven-72rxqo.jpg" alt="">
        </a>
      </div>
      <div class="swiper-item second right">
        <a href="">
          <img src="https://w.wallhaven.cc/full/x8/wallhaven-x8z9yo.jpg" alt="">
        </a>
      </div>
      <div class="swiper-item third">
        <a href="">
          <img src="https://w.wallhaven.cc/full/72/wallhaven-72rd8e.jpg" alt="">
        </a>
      </div>
      <div class="swiper-item second left">
        <a href="">
          <img src="https://w.wallhaven.cc/full/pk/wallhaven-pkw6y3.jpg" alt="">
        </a>
      </div>
    </div>
  </div>

  <script src="./index.js"></script>
</body>
</html>